/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-03-25
 * Time:22:02
 */
//给定一个整型数组, 判定数组是否有序（递增）
public class Test {
    public static void main(String[] args) {
        int[] arr={1,2,3,4,5,6,7,8,9,0};
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]<arr[i+1]){
                //continue;//跳过这次循环
            }else{
                System.out.println("这个数组不是有序滴!");
                break;//跳出循环
            }
            if(i== arr.length-1){//循环运行到这说明数组是有序滴
                System.out.println("这个数组是有序滴!");
            }
        }
    }
}
